package com.example.project.projectspringcloud.dao.user;

import com.example.project.projectspringcloud.dao.BaseMapper;
import com.example.project.projectspringcloud.entity.user.Evaluate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户评分Mapper
 */
@Mapper
@Repository
public interface EvaluateMapper extends BaseMapper<Evaluate> {

    /**
     * 批量插入
     * ==============================================================================
     *
     * @param evaluates
     * @return
     */
    int insertList(@Param("list") List<Evaluate> evaluates);
}